package com.shuhua.taskServer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuhua.pojo.entity.TaskOrder;
import com.shuhua.taskServer.mapper.TaskOrderMapper;
import com.shuhua.taskServer.service.TaskOrderService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TaskOrderServiceImpl extends ServiceImpl<TaskOrderMapper, TaskOrder> implements TaskOrderService {
    @Override
    public List<Map<String, Object>> getOrderWithTaskByCraftsmanId(Long craftsmanId) {
        return this.baseMapper.selectOrderWithTaskByCraftsmanId(craftsmanId);
    }

    @Override
    public Map<String, Object> getOrderWithTaskByTaskAndCraftsman(Long taskId, Long craftsmanId) {
        return this.baseMapper.selectOrderWithTaskByTaskAndCraftsman(taskId, craftsmanId);
    }

    @Override
    public List<Map<String, Object>> getAllOrderWithTask() {
        return this.baseMapper.selectAllOrderWithTask();
    }
} 